home *** CD-ROM | disk | FTP | other *** search
- global counterTimeOut
-
- on exitFrame
- if the frame = label("Eff") then
- if counterTimeOut >= 40 then
- counterTimeOut = 0
- tmpStep = random(10)
- go(label("Eff") + tmpStep)
- else
- counterTimeOut = counterTimeOut + 1
- end if
- else
- if the frame <= (label("Eff") + 10) then
- if counterTimeOut >= 22 then
- counterTimeOut = 0
- tmpStep = random(14)
- if (tmpStep = 13) or (tmpStep = 14) then
- go(label("Eff"))
- else
- go(label("Eff") + tmpStep)
- end if
- else
- counterTimeOut = counterTimeOut + 1
- end if
- else
- if counterTimeOut >= 30 then
- counterTimeOut = 0
- tmpStep = random(14)
- if (tmpStep = 13) or (tmpStep = 14) then
- go(label("Eff"))
- else
- go(label("Eff") + tmpStep)
- end if
- else
- counterTimeOut = counterTimeOut + 1
- end if
- end if
- end if
- go(the frame)
- end
-